//
//  Type.h
//  XNet
//
//  Created by easystudio on 6/23/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//


/***************************************************/
//－－－－－－－－------图片资源－－－－－－－－－－－－－－//
//导航图标
#define PIC_NAV_MSG_NOR         @"nav_msg_nor"
#define PIC_NAV_MSG_SEL         @"nav_msg_sel"
#define PIC_NAV_MAIL_NOR        @"nav_mail_nor"
#define PIC_NAV_MAIL_SEL        @"nav_mail_sel"
#define PIC_NAV_INFO_NOR        @"nav_info_nor"
#define PIC_NAV_INFO_SEL        @"nav_info_sel"
#define PIC_NAV_MORE_NOR        @"nav_more_nor"
#define PIC_NAV_MORE_SEL        @"nav_more_sel"

//Message pic

//Mail pic
#define PIC_MAIL_ACCESSORY                @"mail_accessory"
#define PIC_MAIL_SWITCH_SELF_NORMAL       @"mail_switch_self_normal"
#define PIC_MAIL_SWITCH_SELF_PRESS        @"mail_switch_self_press"
#define PIC_MAIL_TOP_BAR                  @"mail_top_bar"
#define PIC_MAIL_SWITCH_TAB_NORMAL        @"mail_switch_tab_normal"
#define PIC_MAIL_SWITCH_TAB_CLIENT_PRESS  @"mail_switch_tab_client_press"
#define PIC_MAIL_SWITCH_TAB_STAFFER_PRESS @"mail_switch_tab_staffer_press"
#define PIC_MAIL_SWITCH_BUT_BG            @"mail_switch_but_bg"

#define PIC_MAIL_CHANGE_BTN_NORMAL        @"mail_change_btn_nomal"
#define PIC_MAIL_CHANGE_BTN_PRESS         @"mail_change_btn_press"
#define PIC_MAIL_TREE_NODE                @"mail_tree_node"
#define PIC_MAIL_TREE_PLUS                @"mail_tree_plus"
#define PIC_MAIL_TREE_MINUS               @"mail_tree_minus"
#define PIC_MAIL_UNREAD_NUM               @"mail_unread_num"
#define PIC_MAIL_MENU_NORMAL              @"mail_menu_normal"
#define PIC_MAIL_MENU_PRESS               @"mail_menu_press"

#define PIC_MAIL_HALF_SCREEN_NORMAL    @"mail_half_screen_normal"
#define PIC_MAIL_HALF_SCREEN_PRESS     @"mail_half_screen_press"
#define PIC_MAIL_SEARCH_NORMAL         @"mail_search_normal"
#define PIC_MAIL_SEARCH_PRESS          @"mail_search_press"
#define PIC_MAIL_WRITE_NORMAL          @"mail_write_normal"
#define PIC_MAIL_WRITE_PRESS           @"mail_write_press"
#define PIC_MAIL_FLOAT_TOOLBAR_NORMAL  @"mail_float_toolbar_normal"
#define PIC_MAIL_FLOAT_TOOLBAR_PRESS   @"mail_float_toolbar_press"
#define PIC_MAIL_FLOAT_TOOLBAR_CLOSE   @"mail_float_toolbar_close"
#define PIC_MAIL_NO_SELECT             @"mail_no_select"
#define PIC_MAIL_SELECT                @"mail_select"

#define PIC_MAIL_NO_IMPORTANCE         @"mail_no_importance"
#define PIC_MAIL_IMPORTANCE            @"mail_importance"
#define PIC_MAIL_RETURN_NORMAL         @"mail_return_normal"
#define PIC_MAIL_RETURN_PRESS          @"mail_return_press"

#define PIC_MAIL_MERGE_NORMAL          @"mail_merge_normal"
#define PIC_MAIL_MERGE_PRESS           @"mail_merge_press"
#define PIC_MAIL_REVERT_NORMAL         @"mail_revert_normal"
#define PIC_MAIL_REVERT_PRESS          @"mail_revert_press"

#define PIC_MAIL_PRIOR_NORMAL          @"mail_prior_normal"
#define PIC_MAIL_PRIOR_PRESS           @"mail_prior_press"
#define PIC_MAIL_NEXT_NORMAL           @"mail_next_normal"
#define PIC_MAIL_NEXT_PRESS            @"mail_next_press"
#define PIC_MAIL_DRAG_DOWN_NORMAL      @"mail_drag_down_normal"
#define PIC_MAIL_DRAG_DOWN_PRESS       @"mail_drag_down_press"
#define PIC_MAIL_ATTACH_MESSAGE        @"mail_attach_message"

#define PIC_MAIL_BAR_SEND_NORMAL       @"mail_bar_send_normal"
#define PIC_MAIL_BAR_SEND_PRESS        @"mail_bar_send_press"
#define PIC_MAIL_BAR_SAVE_NORMAL       @"mail_bar_save_normal"
#define PIC_MAIL_BAR_SAVE_PRESS        @"mail_bar_save_press"
#define PIC_MAIL_BOTTOM_SEND_NORMAL    @"mail_bottom_send_normal"
#define PIC_MAIL_BOTTOM_SEND_PRESS     @"mail_bottom_send_press"

#define PIC_MAIL_BOTTOM_SAVE_NORMAL    @"mail_bottom_save_normal"
#define PIC_MAIL_BOTTOM_SAVE_PRESS     @"mail_bottom_save_press"

#define PIC_MAIL_DEL_CONTACTOR         @"mail_del_contactor"
#define PIC_MAIL_PERSON_IMAGE          @"info_default_people"

#define PIC_MAIL_FLOAT_TOOLBAR_CLOSE_NORMAL  @"mail_float_toolbar_close_normal"
#define PIC_MAIL_FLOAT_TOOLBAR_CLOSE_PRESS   @"mail_float_toolbar_close_press"
#define PIC_MAIL_FLOAT_TOOLBAR_DELETE_NORMAL @"mail_float_toolbar_delete_normal"
#define PIC_MAIL_FLOAT_TOOLBAR_DELETE_PRESS  @"mail_float_toolbar_delete_press"
#define PIC_MAIL_FLOAT_TOOLBAR_MERGE_NORMAL  @"mail_float_toolbar_merge_normal"
#define PIC_MAIL_FLOAT_TOOLBAR_MERGE_PRESS   @"mail_float_toolbar_merge_press"
#define PIC_MAIL_FLOAT_TOOLBAR_BG            @"mail_float_toolbar_bg"
#define PIC_MAIL_DRAG_MENU                   @"mail_drag_menu"

#define PIC_MAIL_MERGE_DRAG_MENU_NORMAL      @"mail_merge_drag_menu_normal"
#define PIC_MAIL_MERGE_DRAG_MENU_PRESS       @"mail_merge_drag_menu_press"
#define PIC_MAIL_REVERSE_DRAG_MENU_NORMAL    @"mail_reverse_drag_menu_normal"
#define PIC_MAIL_REVERSE_DRAG_MENU_PRESS     @"mail_reverse_drag_menu_press" 
#define PIC_MAIL_PRIOR_DRAG_MENU_NORMAL      @"mail_prior_drag_menu_normal"
#define PIC_MAIL_PRIOR_DRAG_MENU_PRESS       @"mail_prior_drag_menu_press"  
#define PIC_MAIL_NEXT_DRAG_MENU_NORMAL       @"mail_next_drag_menu_normal"
#define PIC_MAIL_NEXT_DRAG_MENU_PRESS        @"mail_next_drag_menu_press"  
#define PIC_MAIL_TRANSMIT_DRAG_MENU_NORMAL   @"mail_transmit_drag_menu_normal"
#define PIC_MAIL_TRANSMIT_DRAG_MENU_PRESS    @"mail_transmit_drag_menu_press"  
#define PIC_MAIL_IMPORTANT_DRAG_MENU_NORMAL  @"mail_important_drag_menu_normal"
#define PIC_MAIL_IMPORTANT_DRAG_MENU_PRESS   @"mail_important_drag_menu_press"

#define PIC_MAIL_CLOSE_DRAG_MENU_NORMAL      @"mail_close_drag_menu_normal"
#define PIC_MAIL_CLOSE_DRAG_MENU_PRESS       @"mail_close_drag_menu_press"
#define PIC_MAIL_CONTACE_NAME_BG             @"mail_contact_name_bg"

//Info pic
#define PIC_INFO_DEFAULT_PRODUCT    @"info_default_product"
#define PIC_INFO_DEFAULT_PEOPLE     @"info_default_people"
#define PIC_INFO_QUOT_SECT_BG       @"info_quot_section_header_bg"
#define PIC_INFO_QUOT_UP            @"info_quotation_up"
#define PIC_INFO_QUOT_DOWN          @"info_quotation_down"
#define PIC_INFO_DRAG_MENU          @"info_drag_menu"
//More pic
#define PIC_MORE_CONFIRM_NORMAL     @"login_normal"
#define PIC_MORE_CONFIRM_PRESS      @"login_press"
#define PIC_MORE_CANCEL_NORMAL      @"exit_normal"
#define PIC_MORE_CANCEL_PRESS       @"exit_press"
//Common
#define PIC_COMM_SLIDE              @"slide"
/***************************************************/

typedef enum
{
	EGOOPullRefreshPulling = 0,
	EGOOPullRefreshNormal,
	EGOOPullRefreshLoading,	
} EGOPullRefreshState;

#define PER_PAGE_ROWS   10

//#define APP_STORE_URL @"itms://itunes.apple.com/app/sandman/id388887746?mt=8&uo=4"
#define APP_STORE_URL @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=abc"

#define BACKGROUND_COLOR [UIColor colorWithRed:0xf4 green:0xf4 blue:0xf4 alpha:1.0]
#define NAVIGATION_BAR_COLOR [UIColor colorWithRed:(32.0/255.0) green:(32.0 / 255.0) blue:(32.0 / 255.0) alpha:1]


#define LOGIN @"Login"
#define GetNewMailCount @"GetNewMailCount"
#define GetMailList @"GetMailList"
#define GetSearchMailList @"GetSearchMailList"
#define GetSearchList @"GetSearchList"

#define GetInfoList @"GetInfoList"
//Product
#define GetProductInfoList @"GetProductInfoList"
#define GetProductInfo @"GetProductInfo"
#define GetProductPictList @"GetProductPictList"
#define NewProduct @"NewProduct"

#define GetInfoSelectList @"GetInfoSelectList"
#define GetQuotSelectList @"GetQuotSelectList"
#define GetQuotMultSelectList @"GetQuotMultSelectList"

//Customer
#define GetCustomerInfoList @"GetCustomerInfoList"
#define GetCustomerContactList @"GetCustomerContactList"
#define NewContact @"NewContact"
#define GetCustomerPictList @"GetCustomerPictList"

#define GetMemberPosiList @"GetMemberPosiList"


//Quotation
#define GetQuotationInfoList @"GetQuotationInfoList"

#define GetQuotationInfo0 @"GetQuotationInfo0"
#define GetQuotationInfo1 @"GetQuotationInfo1"
#define GetQuotationInfo2 @"GetQuotationInfo2"
#define GetQuotationInfo3 @"GetQuotationInfo3"

//Chance
#define GetChanceInfoList @"GetChanceInfoList"
#define GetChanceInfo @"GetChanceInfo"

//Mission
#define GetMissionTodoList @"GetMissionTodoList"
#define GetMissionList @"GetMissionList"
#define GetMissionInfo @"GetMissionInfo"
//
#define GetApproveMailShow @"GetApproveMailShow"
#define GetApproveHisList @"GetApproveHisList"

/////////////////////
/////////////////////
#define mail_GetNewMailCount @"mail.getNewMailCount"

//More
#define login_login                 @"login.login"
#define common_GetPosi              @"common.getEmployeeRoles"
#define common_SaveFeedBack         @"common.saveFeedBack"
#define common_GetNewVersion        @"common.getNewVersion"
#define common_UpdateCurrentPoint   @"common.updateCurrentPoint"

//Mission
#define message_GetMsgCount @"message.getMsgCount"
#define message_GetMsgList @"message.getMsgList"
#define message_SetMsgRead @"message.setMsgRead"

#define message_GetApproveList @"message.getApproveList"
#define message_GetApproveInfo @"message.getApproveInfo"
#define message_DoAgreeDisallow @"message.doAgreeDisallow"
#define message_GetAuditListForOneApprove @"message.getAuditListForOneApprove"
#define message_GetApproveListCount @"message.getApproveListCount"


//Customer
#define customer_GetCustomerList @"customer.getCustomerList"
#define customer_GetCustomer @"customer.getCustomer"
#define customer_GetCustContractList @"customer.getCustomerContractList"
#define customer_GetSearchCustList @"customer.getSearchCustomerList"
#define customer_GetCustPortList @"customer.getCustomerPortList"
#define customer_GetCustDocketsList @"customer.getCustomerDocketsList"
#define customer_GetCustPictureList @"customer.getCustomerPictureList"
#define customer_GetCustomerOriginList @"customer.getCustomerOriginList"
#define customer_GetCustomerTypeList @"customer.getCustomerTypeList"
#define customer_GetCustomerCreditList @"customer.getCustomerCreditList"
#define customer_SaveCustomerContract @"customer.saveCustomerContract"
#define customer_SaveNewCustomer @"customer.saveNewCustomer"



//Product
#define product_GetProductList @"product.getProductList"
#define product_GetProductPictureList @"product.getProductPictureList"
#define product_GetProduct @"product.getProduct"
#define product_GetSearchProductList @"product.getSearchProductList"
#define product_GetProductCategoryList @"product.getProductCategoryList"
#define product_GetSearchProductCategoryList @"product.getSearchProductCategoryList"
#define product_GetProductUnitList @"product.getProductUnitList"
#define product_GetSearchProductUnitList @"product.getSearchProductUnitList"
#define product_GetCustomsCodeList @"product.getCustomsCodeList"
#define product_GetSearchCustomsCodeList @"product.getSearchCustomsCodeList"
#define product_GetProductList @"product.getProductList"

#define product_GetProductSupplierList @"product.getProductSupplierList"
#define product_GetProductConversionRateList @"product.getProductConversionRateList"
#define product_GetProductAssemblyList @"product.getProductAssemblyList"
#define product_GetProductCustomList @"product.getProductCustomList"
#define product_GetProductPackingList @"product.getProductPackingList"

#define product_SaveNewProduct @"product.saveNewProduct"


//Quotation
#define quotation_GetQuotationList @"quotation.getQuotationList"
#define quotation_GetQuotationBasic @"quotation.getPriceQuoteBasic"
#define quotation_GetQuotationOffer @"quotation.getPriceQuoteOffer"
#define quotation_GetQuotationProductList @"quotation.getPriceQuoteProductList"


#define product_GetQuotProductUnitList @"product.getQuotProductUnitList"

#define quotation_GetSearchQuotationList @"quotation.getSearchQuotationList"
//#define quotation_GetQuotationProductList @"quotation.getQuotationProductList"
#define quotation_GetCostModel @"quotation.getCostModel"
//@"币种"
#define quotation_GetCurrencyTypeList @"quotation.getCurrencyTypeList"
//@"价格条款"
#define quotation_GetPriceClauseTypeList @"quotation.getPriceClauseTypeList"
//@"起运港"
#define quotation_GetPortList @"quotation.getPortList"
#define quotation_GetAllPriceQuoteCostModel @"quotation.getAllPriceQuoteCostModel"

#define quotation_SaveNewQuotation @"quotation.saveNewQuotation"
#define quotation_SaveQuoteProducts @"quotation.saveQuoteProducts"


//Chance
#define chance_GetChanceList @"chance.getChanceList"
#define chance_GetChance @"chance.getChance"
#define chance_GetSearchChanceList @"chance.getSearchChanceList"
#define chance_isUseBusinessChance @"chance.isUseBusinessChance"
#define chance_SaveChanceChance @"chance.saveNewChance"

//mail
#define mail_GetMailList                @"mail.getMailList"
#define mail_GetMailDetails             @"mail.getMailDetails"
#define mail_SettingMailImportFlag      @"mail.settingMailImportFlag" 
#define mail_GetEmployeeList            @"common.getEmployeesList" 
#define mail_SendNewMail                @"mail.sendNewMail" 
#define mail_SaveNewMail                @"mail.saveNewMail" 
#define mail_DeleteMail                 @"mail.deleteMail" 
#define mail_SettingMultiMerger         @"mail.settingMultiMerger" 
#define mail_GetCustomerList            @"customer.getCustomerList" 
#define mail_SettingMailReadFlag        @"mail.settingMailReadFlag"
#define mail_GetMailByBoxCountNoRead    @"mail.getMailByBoxCountNoRead"
#define mail_GetCustomerMailList        @"mail.getCustomerMailList"
#define mail_GetSearchCustomerMailList  @"mail.getSearchCustomerMailList"
#define mail_GetSearchMailList          @"mail.getSearchMailList"
#define mail_getContactorlist           @"mail.getContactorList"
#define mail_GetSearchContactorList     @"mail.getSearchContactorList"
#define mail_GetFirstCustomerMailList   @"mail.getFirstCustomerMailList"
#define mail_GetNextPriorDetailMail     @"mail.getNextPriorDetailMail" 

#define mail_GetMailDetailsShow             @"mail.getMailDetailsShow"

//Employe
#define member_GetEmployeList @"member.getEmployeesList"

//常量定义
#define ROWS_PER_PAGE @"ROWS_PER_PAGE"
#define START_ROW @"START_ROW"
#define TIME_INTERVAL 60*3
#define TIME_INTERVAL_FOR_PIC_LIST 2
